<!DOCTYPE html>
<html>

<head>
    <title>校园内推网</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>

<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-sm bg-dark navbar-dark">
        <!-- Brand/logo -->
        <a class="navbar-brand" href="#">内推页面</a>

        <!-- Links -->
        <ul class="navbar-nav">
            <!-- <li class="nav-item">
                <a class="nav-link" href="#">个人中心</a>
            </li> -->
            <li class="nav-item">
                <a class="nav-link" href="{:url('index/logout')}">注销</a>
            </li>
        </ul>
    </nav>
    <!-- 导航栏 end -->
    <!-- 内容盒子 -->
    <div class="container-fluid">
        <div class="row">
            <!-- 左边内容盒子 -->
            <div class="col-md-2" style="height: 700px;margin-top: 20px;">
                <div class="card">
                    <div class="card-body">
                        <div class="list-group">
                            {volist name="xi" id="xi"}
                            <a href="{:url('school/index1',['user_major'=>$xi.user_major])}" class="list-group-item list-group-item-action">{$xi.user_major}</a>
                            {/volist}
                            <!-- <a href="zhiwei.html" class="list-group-item list-group-item-action">电子商务系</a>
                            <a href="xuexiao.html" class="list-group-item list-group-item-action">数字艺术系</a>
                            <a href="xuanjiang.html" class="list-group-item list-group-item-action">英语系</a> -->
                        </div>
                    </div>
                </div>
            </div>
            <!-- 左边内容盒子 end -->
            <!-- 右边内容盒子 -->
            <div class="col-md-10">
                <div class="card">
                    <div class="card-body">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>学生姓名</th>
                                    <th>专业</th>
                                    <th>学生性别</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="res" id="vo"}
                                <tr>
                                    <td>{$vo.user_name}</td>
                                    <td>{$vo.user_major}</td>
                                    <td>{$vo.user_gender}</td>
                                    <td>
                                        <div class="dropdown">
                                          <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                                            内推
                                          </button>
                                          <div class="dropdown-menu">
                                            {volist name="res1" id="vo1"}
                                            <a class="dropdown-item" href="{:url('school/nt',['company_id'=>$vo1.company_id,'user_id'=>$vo.user_id])}">{$vo1.company_name}</a>
                                            {/volist}
                                          </div>
                                        </div>
                                      </td>
                                </tr>
                                {/volist}
                               
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- 右边内容盒子 end -->
        </div>
    </div>
    <!-- 内容盒子 end -->
    <!-- 底部盒子 -->
    <div class="jumbotron text-center" style="margin-bottom:0;margin-top: 40px;">
        <p>底部内容</p>
    </div>
    <!-- 底部盒子 end -->
</body>

</html>